export default {
  props: {
    show: {
      type: Boolean,
      default: false
    },
    type: {
      type: String
    }
  },
  data() {
    return {
      visible: this.show
    };
  },
  watch: {
    show: {
      immediate: true,
      handler(n) {
        this.visible = n;
      }
    }
  },
  methods: {
    onClose() {
      this.$emit("update:show", false);
    }
  }
};
